﻿using System.Collections.Generic;

namespace CoreEx.Database.Persistence
{
    /// <summary>
    /// Represents a class that is capable of persisting a set of change requests
    /// to the underlying data store.
    /// </summary>
    public interface IPersister
    {
        /// <summary>
        /// Persists the requested changes to the underlying datastore.
        /// </summary>
        /// <param name="changeRequests">The list of changes to be persisted.</param>
        void Persist(IList<IObjectState> changeRequests);
    }
}
